// ------------------------
// projects/life/TestLife.h
// Copyright (C) 2009
// Glenn P. Downing
// ------------------------

#ifndef TestLife_h
#define TestLife_h

// --------
// includes
// --------
#include <cstdio>
#include <iostream>
#include "cppunit/TestFixture.h"             // TestFixture
#include "cppunit/extensions/HelperMacros.h" // CPPUNIT_TEST, CPPUNIT_TEST_SUITE, CPPUNIT_TEST_SUITE_END

// ----------
// namespaces
// ----------

namespace cs {

// --------
// TestLife
// --------

struct TestLife : CppUnit::TestFixture {
    // -----
    // tests
    // -----

    // <your tests>
	void test_read(){
		Life<ConwayCell> l1(5,6);
		Life<ConwayCell> l2(5,6);
		//Life<ConwayCell> l2(cin);
		CPPUNIT_ASSERT(l1==l2);
		
	}

	void test_nullStep(){
		Life<ConwayCell> l1(5,6);
		Life<ConwayCell> l2(5,6);
		l1.step();
		CPPUNIT_ASSERT(l1==l2);
	}

    // -----
    // suite
    // -----

CPPUNIT_TEST_SUITE(TestLife);
CPPUNIT_TEST(test_read);
CPPUNIT_TEST(test_nullStep);
CPPUNIT_TEST_SUITE_END();};

} // cs

#endif // TestLife_h
